package com.java.base.exercise.current;

/**
 * @Author RenPu
 * @Date 2021/9/2 12:25
 * @Version 1.0
 * @Description:
 **/


public class UncatchException implements Thread.UncaughtExceptionHandler {
    @Override
    public void uncaughtException(Thread t, Throwable e) {

        System.out.println(e.getStackTrace() + "自定义异常！！！！！");
//        log.debug("-------------》》》捕获线程异常信息");
//        log.debug("Exception message - " + e.getMessage());
//        log.debug("Method name - " + method.getName());
    }
}
